import request from "@/request";
import {POST, GET} from '@/constant'
// 供应商列表
export function supplierList(data) {
    return request({
        url: '/xiangmuprice/gongyingshanglist',
        method: POST,
        data
    })
}
// 添加供应商
export function addSupplier(data) {
    return request({
        url: '/xiangmuprice/addgongyingshang',
        method: POST,
        data
    })
}
// 删除供应商
export function delSupplier(data) {
    return request({
        url: '/xiangmuprice/delgongyingshang',
        method: POST,
        data
    })
}
// 获取省市区id
export function getAddress(data) {
    return request({
        url: '/address/area',
        method: POST,
        data
    })
}
// 添加客户
export function addkehu(data) {
    return request({
        url: '/kehu/addkehu',
        method: POST,
        data
    })
}
// 客户列表
export function getKehuList(data) {
    return request({
        url: '/kehu/index',
        method: POST,
        data
    })
}

// 项目绑定
export function addxiangmukehu(data) {
    return request({
        url: '/kehu/addxiangmukehu',
        method: POST,
        data
    })
}


// 款项结算列表
export function paymentList(data) {
    return request({
        url: '/xiangmuprice/xiangmujiesuanlist',
        method: POST,
        data
    })
}
// 款项结算添加和编辑 
export function addjiekuan(data) {
    return request({
        url: '/xiangmuprice/addjiekuan',
        method: POST,
        data
    })
}
// 结款账户
export function accountList(data) {
    return request({
        url: '/xiangmuprice/jiekuanzhanghulist',
        method: POST,
        data
    })
}
// 添加和编辑账户
export function editAccount(data) {
    return request({
        url: '/xiangmuprice/addjiekuanzhanghu',
        method: POST,
        data
    })
}







